package com.agileboot.admin.rabbitMq;

import com.agileboot.admin.AgileBootAdminApplication;
import com.agileboot.domain.medicine.MedicineApplicationService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest(classes = AgileBootAdminApplication.class)
@RunWith(SpringRunner.class)
public class testRabbitMq {

    @Autowired
    private MedicineApplicationService medicineApplicationService;

    @Test
    public void syncData() throws Exception {
        medicineApplicationService.syncMedicineToElasticSearch();
    }

}
